﻿#region Copyright Information
/* +------------------------------------------------+
 * |                    GateShift                   |
 * |================================================|
 * | GateShift is open source software under terms  |
 * | of the GPL License Agreement. All code rights  |
 * | are reserved by the project owner and can be   |
 * | changed or revoked at any time. All artistic   |
 * | works of art (i.e 3D Models, Worlds, ...) used |
 * | in this project fall under the artist terms of |
 * | agreement.                                     |
 * |================================================|
 * |    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT   |
 * |    WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,   |
 * | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
 * |    MERCHANTABILITY, FITNESS FOR A PARTICULAR   |
 * | PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
 * | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR |
 * | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
 * |  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,  |
 * | ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
 * |  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE  |
 * |                    SOFTWARE.                   |
 * +------------------------------------------------+
 * | Copyright © 2008-2009 By FastNET Services.     |
 * | All Rights Reserved.                           |
 * +------------------------------------------------+  
 */
#endregion
#region Usings

using System;

#endregion

namespace GateShift.Servers.GameServer.LoggingSystem
{
    /// <summary>
    /// EventArgs used when a log is being entered into the system
    /// </summary>
    public class LogEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes LogEventArgs with default values
        /// </summary>
        /// <param name="message">LogMessage with the data being logged</param>
        public LogEventArgs(LogMessage message)
        {
            if (message == null) throw new ArgumentNullException("message");

            Message = message;
        }

        /// <summary>
        /// Gets the data being logged
        /// </summary>
        public LogMessage Message { get; private set; }
    }
}